<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
		destroy-method="close">
		<property name="driverClassName">
			<value>com.mysql.jdbc.Driver</value>
		</property>
		<property name="url">
			<value>jdbc:mysql://192.188.2.17:3306/church</value>
		</property>
		<property name="username">
			<value>root</value>
		</property>
		<property name="password">
			<value>jf63507062</value>
		</property>
	</bean>

	<bean id="sessionFactory"
		class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
		<property name="dataSource">
			<ref local="dataSource" />
		</property>
		<property name="mappingResources">
			<list>
				<value>com/church/db/Catechumenate.hbm.xml</value>
				<value>com/church/db/Catholics.hbm.xml</value>
				<value>com/church/db/Child.hbm.xml</value>
				<value>com/church/db/Devices.hbm.xml</value>
				<value>com/church/db/Friends.hbm.xml</value>
				<value>com/church/db/Newpersonality.hbm.xml</value>
				<value>com/church/db/Tasklist.hbm.xml</value>
				<value>com/church/db/User.hbm.xml</value>
				<value>com/church/db/Qanda.hbm.xml</value>
			</list>
		</property>
		<property name="hibernateProperties">
			<props>
				<prop key="hibernate.dialect">
					org.hibernate.dialect.MySQLDialect
				</prop>
				<prop key="hibernate.show_sql">true</prop>
			</props>
		</property>
	</bean>
	<bean name="userDao" class="com.church.daoimpl.UserDaoImpl">
		<property name="sessionFactory">
			<ref local="sessionFactory"></ref>
		</property>
	</bean>
	<bean name="userServices" class="com.church.services.UserServicesImpl">
		<property name="userDao">
			<ref local="userDao"></ref>
		</property>
	</bean>
	<bean name="qandaDao" class="com.church.daoimpl.QandaDaoImpl">
		<property name="sessionFactory">
			<ref local="sessionFactory"></ref>
		</property>
	</bean>
	<bean name="qandaServices" class="com.church.services.QandaServicesImpl">
		<property name="qandaDao">
			<ref local="qandaDao"></ref>
		</property>
	</bean>
	<bean id="register" class="com.church.action.Register">
		<property name="userServices">
			<ref local="userServices"></ref>
		</property>
	</bean>
	<bean id="login" class="com.church.action.Login">
		<property name="userServices">
			<ref local="userServices"></ref>
		</property>
	</bean>
		<bean id="getUserList" class="com.church.action.GetUserList">
		<property name="userServices">
			<ref local="userServices"></ref>
		</property>
	</bean>
	<bean id="getQandaList" class="com.church.action.GetQandaList">
		<property name="qandaServices">
			<ref local="qandaServices"></ref>
		</property>
	</bean>
</beans>
